<template>
  <div class="recommend-box">
    <div class="recommend-item" v-for="(item,index) of recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div class="recommend-item-title">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: {
      recommends: {
        type: Array,
        default () {
          return []
        }
      }
    }
  }
</script>

<style>
  .recommend-box {
    display: flex;
    flex-direction: row;
    border-bottom: 8px solid #eee;
  }
  .recommend-item{
    /* border: 1px solid red; */
  }
  .recommend-item a {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .recommend-item img {
    padding: 5px;
    width: 80%;
  }
  .recommend-item-title {
    margin: 5px 0px;
    font-size: 12px;
  }
</style>
